package com.sdyc.ndmp.cls.engine;

public enum Match {

    MATCH_ALL(0),
    MATCH_ANY(1),
    MATCH_NOT(2);

    protected final int type;

    Match(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public static Match valueOf(int type) {
        switch (type){
            case 0:
                return MATCH_ALL;
            case 1:
                return MATCH_ANY;
            default:
                return MATCH_NOT;
        }
    }
}
